#!/bin/sh

rm -rf etc

find . -type f -name df -exec mv '{}' bin/df-FULL \;

#slackware
if [ -f bin/mktemp-gnu ] ; then
	mv bin/mktemp-gnu bin/mktemp
fi

# - tail is now a full app..

# these apps are currently busybox applets...
# df, mktemp-gnu - broken symlinks (slackware)

for i in \
	'[' \
	basename \
	chown \
	chroot \
	df \
	echo \
	env \
	expr \
	false \
	mktemp-gnu \
	realpath \
	sha1sum \
	sha256sum \
	sleep \
	sync \
	tee \
	tr \
	true \
	unlink \
	who \
	whoami \
	yes
do

	for d in bin sbin usr/bin usr/sbin usr/local/bin
	do
		if [ -f ${d}/${i} -o -L ${d}/${i} ] ; then
			rm -fv ${d}/${i}
		fi
	done

done
